﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kira.Compiler.Lexer
{
    public class Type : Word
    {
        static Type()
        {
            Int = new Type("int", Tag.Basic, 4);
            Float = new Type("float", Tag.Basic, 8);
            Char = new Type("char", Tag.Basic, 1);
            Bool = new Type("bool", Tag.Basic, 1);
        }
        public int Width { get; set; }
        public Type(String s, Tag tag, int w)
            : base(s, tag)
        {
            this.Width = w;
        }

        public static Type Int { get; private set; }
        public static Type Float { get; private set; }
        public static Type Char { get; private set; }
        public static Type Bool { get; private set; }
    }
}
